<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
    <link rel="stylesheet"  href="../layui/css/layui.css" media="all">
    <title>layIM通讯</title>
</head>
<body>
<script src=" ../layui/layui.js">
    layui.use('layim', function(layim){
        var layim = layui.layim;
        //先来个客服模式压压精
        layim.config({
            init: {
                //配置客户信息
                mine: {
                    "username": "访客" //我的昵称
                    ,"id": "100000123" //我的ID
                    ,"status": "online" //在线状态 online：在线、hide：隐身
                    ,"remark": "在深邃的编码世界，做一枚轻盈的纸飞机" //我的签名
                    ,"avatar": "//res.layui.com/images/fly/avatar/00.jpg" //我的头像
                }
            }
            ,brief: true //是否简约模式（如果true则不显示主面板）
        });
        layim.chat({
            name: '客服姐姐'
            ,type: 'friend'
            ,avatar: 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1'
            ,id: -2
        });
        layim.setChatMin(); //收缩聊天面板
    });
</script>

</body>
</html>
